﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.Public.StuProfile" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<%if (userInfo.MemberNo == ""){%>
				<div style="padding:50px; text-align:center">
					<div class="Black22B"><%=GetText("PB002")%></div>
				</div>
				<%}else{ %>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%if(userInfo.Online){%><img src='/Images/online.gif' title= '<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%}else{ %><img src='/Images/offline.gif' title='<%=(bool)userInfo.Online == true ? GetText("C0038") : GetText("C0039")%>' align="absmiddle" /><%} %>&nbsp;<%=userInfo.Nickname%></h1>
							</div>
							<div class="profile_basicinfo" style="position:relative">
								<div class="basicinfo_av">
									<div><a href="#"><img src='<%=(userInfo.Avatar==""?"/Images/no_pic.gif":userInfo.Avatar)%>' width="150" height="150" border="0" /></a></div>
									<div style='display: <%=(userInfo.MemberNo==Page.User.Identity.Name)?"":"none"%>'><span class="edit_text">[ <img src="/Images/icon_common_edit.gif" align="absmiddle" /> <a href="/my/profile/myphoto.htm"><%=GetText("C0053")%></a> ]</span></div>
								</div>
								<div class="basicinfo_lan">
									<p><span class="black18"><%=GetText("C0004")%>: </span><a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%></a><em>(<%=GetText("C0023") %>)</em><% if(userInfo.MotherTongue2.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue2)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue2Level)%></em><%}%><% if(userInfo.MotherTongue3.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue3)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue3Level)%></em><%}%><% if(userInfo.MotherTongue4.Trim()!=""){%>, <a href="<%=WWWHost%>/teacher/speak-<%=(userInfo.MotherTongue4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue4)%></a><em><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.MotherTongue4Level)%></em><%} %>						</p>
									<p><span class="black18"><%=GetText("C0006")%>: </span><%if (userInfo.TargetLanguage.Trim() != ""){ %><a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguageLevel)%><%} %><% if(userInfo.TargetLanguage2.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage2)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage2)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage2Level)%><%}%><% if(userInfo.TargetLanguage3.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage3)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage3)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage3Level)%><%}%><% if(userInfo.TargetLanguage4.Trim()!=""){%>, <a href="<%=WWWHost%>/partner/speak-<%=(userInfo.TargetLanguage4)%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage4)%></a><%=BLF.WWW_User.Users.User.GetLevelText(userInfo.TargetLanguage4Level)%><%} %></p>
									<p class="grey11"><%=userInfo.IsShowBod && userInfo.Age!=""? userInfo.Age + ", " : ""%><%=userInfo.Gender!=""?GetGenderText(userInfo.Gender)+", ":""%><%=GetText("C0102",new string[]{(userInfo.Hometown.Trim()+" ")+(GetCountryText(userInfo.Nationality))})%><%if (userInfo.Country != ""){ %>, living in <% if (userInfo.City.Trim() != ""){%><%=(userInfo.City.Trim() + " ")%><%}%><%=GetCountryText(userInfo.Country)%><%} %></p>
									<div><%=userInfo.Avatar_title == "" ? "" : "<div class='thoughtbox'><div><div><div><div>" + userInfo.Avatar_title + "</div></div></div></div></div>"%></div>
								</div>
								<div class="clear"></div>
							</div>
							<%if(mymemberno!=userInfo.MemberNo) {%>
							<div class="submenuN_button" style="right:0px; top:30px">
								<div class="mbasicinfo_op">
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_add.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
											<%if (UserRelation==0){%><a href="#" id="KKK" title="<%=GetText("C0078")%>" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"$AddFriends$('"+userInfo.MemberNo+"','KKK')\"":"onclick=\"NotAffirm()\""%> ><%=GetText("C0078")%></a><%}else{ %><span id="addToFriends" style="color:#ccc" title='<%=GetText("PB005",new string[]{userInfo.Nickname})%>'><%=GetText("C0078")%></span><%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_common_mailbox.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno==""){ %><a href="#" title="<%=GetText("C0079")%>" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0079")%></a><%}else if ((userInfo.WhoMsg == "0" || userInfo.WhoMsg == "1" || (userInfo.WhoMsg == "2" && UserRelation == 1)) && mymemberno!=userInfo.MemberNo){%><a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"$Getmail$('"+userInfo.MemberNo+"')\"":"onclick=\"NotAffirm()\""%>  title="<%=GetText("C0079")%>"><%=GetText("C0079")%></a><%}else{ %><span id="Span3" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0079")%></span>
										<%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_chat.gif" align="absmiddle" border="0" /></div>
										<div class="floatl Black12UU">
										<%if (mymemberno==""){ %><a href="#" onclick="javascript:top.location='/user/login.htm?ReturnUrl='+top.location;return false;"><%=GetText("C0080")%></a><%}else if ((userInfo.WhoChatMe == "0" || userInfo.WhoChatMe == "1" || (userInfo.WhoChatMe == "2" && UserRelation == 1)) && mymemberno!=userInfo.MemberNo){%><a href="#" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"javascript: up_launchWM( '"+Page.User.Identity.Name.TrimStart('T').TrimStart('0')+"', '"+ userInfo.MemberNo.TrimStart('T').TrimStart('0')+"' ); return false;\"":"onclick=\"NotAffirm()\""%> ><%=GetText("C0080")%></a><%}else{ %><span id="Span1" style="color:#ccc" title="<%=GetText("PB009")%>"><%=GetText("C0080")%></span>
										<%} %>
										</div>
										<div class="clear"></div>
									</div>
									<div class="profile_op">
										<div class="floatl" style="margin-right:5px"><img src="/Images/icon_report.gif" alt="Flag it" align="absmiddle" /></div>
										<div class="floatl Black12UU"><a href="#" title="<%=GetText("PB010")%>" onclick="$Feedback$()"><%=GetText("PB010")%></a></div>
										<div class="clear"></div>
									</div>
								</div>						
							</div>
							<%} %>
						</div>
					</div>
				</div>
				<div>
					<ul id="qa_nav" class="sort_sel">
						<li class="first selATags" style="cursor:pointer"><span>Profile</span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/details.htm">Details</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/activity.htm">Activity</a></span></li>
						<li class="" style="cursor:pointer"><span><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/blackboard.htm">Blackboard</a></span></li>
					</ul>
					<div class="clear"></div>							
					<!--latest-->
				</div>
				<div class="Center9001n">
					<div class="Center9001Left">
						<%if (uelist.Count > 0){ %>	
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("PB011")%></h4>
								<div id="EventList"  class="layer_contenrA5">
									<ul id="right_ul">
									<asp:Repeater ID="rptLastEvent" runat="server">
									<ItemTemplate>
										<li><%# GetUserLastEventDescrip(Eval("CateID").ToString(), HttpUtility.HtmlEncode(Eval("VarReplace").ToString()))%></li>
									</ItemTemplate>
									</asp:Repeater>
									</ul>
								</div>
							</div>
						</div>
						<%} if (IsAgreeContInfo){%>
						<div class="right_layerA">
						<!--gallery list start-->
							<div class="layer_contentA">
								<h4><%=userInfo.Nickname%>'s friends(<%=intlist[0]%>)</h4>
								<div class="layer_contentA5">
									<asp:Repeater ID="rptMemberList" runat="server">
									<ItemTemplate>
									<div class="margin10">
									<div class="pic50 floatl wid65"><a class="photo_50" href="<%# "/"+DataBinder.Eval(Container.DataItem,"MemberNo")+".htm"%>"><img src='<%#(DataBinder.Eval(Container.DataItem,"Avatar").ToString()==""?"/Images/no_pic.gif":DataBinder.Eval(Container.DataItem,"Avatar").ToString())%>' border="0"></a></div>
									<div class="floatr wid120"><a href='<%# "/"+DataBinder.Eval(Container.DataItem,"MemberNo")+".htm"%>'><%#DataBinder.Eval(Container.DataItem,"Nickname")%></a><br /><span class="grey11">From</span></div>
									<div class="clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
									<p align="right"><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/friends.htm"><%=GetText("PB102")%></a></p>
								</div>
							</div>
						</div>
						<%} %>
					</div>
					<div class="Center9001Right">
						<div class="Center9001content">
							<div class="profile_area">
								<div class="profile_aboutme">
									<div>
										<p>
										<%if (userInfo.Introduction.Trim() == ""){%>
										<%=GetText("C0025")%><br />
										<%}else{%>
										<%=HttpUtility.HtmlEncode(userInfo.Introduction).Replace("\n", "<br/>")%>
										<%}%>
										</p>
									</div>
									<p align="right"><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/details.htm">More about <%=userInfo.Nickname %></a></p>
								</div>
								<%--Topic--%>
								<%if (userInfo.IsAgreeContInfo == "0" || (userInfo.IsAgreeContInfo == "1" && HttpContext.Current.User.Identity.Name != "") || (userInfo.IsAgreeContInfo == "2" && arrlist[0].ToString() == "1")){%>  
								<div class="profile_aboutme">
									<h4><%=userInfo.Nickname%>'s contact</h4>
											<%if (userInfo.IM1Account.Trim() == ""){%>
											<%}else{%>
											<a href="skype:<%=userInfo.IM1Account%>?call" onclick="return skypeCheck();"><img src="http://mystatus.skype.com/smallicon/<%=userInfo.IM1Account%>" border="0" align="absmiddle" /></a>
											Skype:
											<%=userInfo.IM1Account%>
											<br />
											<%}%>
											<%if (userInfo.IM2Account.Trim() == ""){%>
											<%}else{%>
											<a href="msnim:chat?contact=<%=userInfo.IM2Account%>"><img src='/images/IMIcons/Msn_Offline.gif' border="0" align="absmiddle" /></a>
											MSN Messenger:
											<%=userInfo.IM2Account%>
											<br />
											<%}%>
											<%if (userInfo.IM3Account.Trim() == ""){%>
											<%}else{%>
											<a href="http://edit.yahoo.com/config/send_webmesg?.target=<%=userInfo.IM3Account%>&amp;.src=pg"><img border="0" src="http://opi.yahoo.com/online?u=<%=userInfo.IM3Account%>&amp;m=g&amp;t=0&amp;l=cn" align="absmiddle" /></a> Yahoo Messenger:
											<%=userInfo.IM3Account%>
											<br />
											<%}%>
											<%if (userInfo.IM4Account.Trim() == ""){%>
											<%}else{%>
											<img src='/images/IMIcons/aim_Offline.gif' border="0" align="absmiddle" />
											AOL Instant Messenger:
											<%=userInfo.IM4Account%>
											<br />
											<%}%>
											<%if (userInfo.IM5Account.Trim() == ""){%>
											<%}else{%>
											<img src="http://status.icq.com/online.gif?icq=<%=userInfo.IM5Account%>&img=5" align="absmiddle">
											ICQ:
											<%=userInfo.IM5Account%>
											<br />
											<%}%>
											<%if (userInfo.IM6Account.Trim() == ""){%>
											<%}else{%>
											<img src='/images/IMIcons/gtalk_Online.gif' border="0" align="absmiddle" />
											Google Talk:
											<%=userInfo.IM6Account%>
											<%}%>
								</div>	
								<%} %>
								<%if(rptqm.Items.Count>0){ %>
								<div class="profile_aboutme">
									<asp:Repeater ID="rptqm" runat="server">
									<HeaderTemplate>
									<h3><%=GetText("AS020")%></h3>
									<div>
										<ul class="profile_answer">
											</HeaderTemplate>
											<ItemTemplate>
												<li><a href="/answers/question/<%#Eval("QuestionID") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Question").ToString())%>"><img src="<%#QStatusImage(Eval("Status").ToString())%>" align="absmiddle" border="0" /></a> <a href="/answers/question/<%#Eval("QuestionID") %>.htm"><%#HttpUtility.HtmlEncode(Eval("Question").ToString())%></a> <span class="grey11"><%#FormatDiffDate(GetText("C0037"), Eval("DiffLastUpdate").ToString())%></span></li>
											</ItemTemplate>
											<FooterTemplate>
										</ul>
										<p align="right"><a href="<%=WWWHost %>/<%=userInfo.MemberNo %>T/questions.htm"><%=GetText("More of {0}’s Questions", new string[] {userInfo.Nickname})%></a>  <a href="<%=WWWHost %>/<%=userInfo.MemberNo %>T/answers.htm"><%=GetText("More of {0}’s Answers", new string[] {userInfo.Nickname})%></a></p>
									</div>
									</FooterTemplate>
									</asp:Repeater>
								</div>
								<%} %>	
								<!--div class="margin20">
								The main purposes of <%=HttpUtility.HtmlEncode(userInfo.Nickname)%> at italki are <a href="<%=WWWHost%>/partner/learn-<%=userInfo.TargetLanguage%>.htm">learn <%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%></a>  and <a href="<%=WWWHost%>/partner/speak-<%=userInfo.MotherTongue%>.htm">speak <%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%></a>, and it is called as language </div>
								<div class="margin20">exchange:<a href="<%=WWWHost%>/partner/<%=(userInfo.TargetLanguage)%>-learn-<%=userInfo.MotherTongue%>.htm"><%=BLF.StaticData.GetLanguageText(userInfo.MotherTongue)%>-<%=BLF.StaticData.GetLanguageText(userInfo.TargetLanguage)%> exchange</a></div-->					
								<% if (userInfo.WhoViewComment == "0" || (userInfo.WhoViewComment == "1" && HttpContext.Current.User.Identity.Name != "") || (userInfo.WhoViewComment == "2" && arrlist[0].ToString() == "1")){%>
								<div class="profile_aboutme">
									<h3><a name="#comment"></a><%=GetText("PB060")%><span dir="ltr" id="comcount">(<%=intlist[1]%>)</span></h3>
									<!--div style="text-align:right" class="margin5"> <%if(userInfo.WhoAddComment == "0" || (userInfo.WhoAddComment == "1" && HttpContext.Current.User.Identity.Name != "") || (userInfo.WhoAddComment == "2" && arrlist[0].ToString() == "1")){ %><a href="javascript:;" onclick="$scroller$('txtCommInput',100)">Add your comment</a><%} %></div-->
									<div id="Comment">
										<div id="MessagesBox"  style="display:none">
											<div class="MessagePanel4">
												<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
												<div id="MessageText"></div>
											</div>
										</div>
										<div id="CommentList">
										<asp:Repeater ID="userComment" runat="server" >
											<ItemTemplate>
											<div class="my_comment">
												<div class="my_comment_avatar Pic50"><A class="photo_50" href='<%#DataBinder.Eval(Container.DataItem, "userFrom","/{0}.htm").ToString()%>' ><img src='<%#(DataBinder.Eval(Container.DataItem,"Avatar").ToString()==""?"/Images/no_pic.gif":DataBinder.Eval(Container.DataItem,"Avatar").ToString())%>'></A></div>
												<div class="my_comment_Bacontent">
													<div class="my_comment_acontent"><span class="grey11"><a href='<%#DataBinder.Eval(Container.DataItem, "userFrom","/{0}.htm").ToString()%>' ><%#DataBinder.Eval(Container.DataItem, "NickName")%></a> <%#FormatDiffDate(GetText("C0036"), Eval("DiffDate").ToString())%></span><div class="margin5"><%#HttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "content").ToString()).Replace("\n", "<br/>")%></div></div>
													<div class="clear"></div>
												</div>
												<div class="Clear"></div>
											</div>
											</ItemTemplate>
										</asp:Repeater>
										</div>
										<p align="right"><a href="<%=WWWHost%>/<%=userInfo.MemberNo %>/blackboard.htm">More comments</a></p>
										<%} if(userInfo.WhoAddComment == "0" || (userInfo.WhoAddComment == "1" && HttpContext.Current.User.Identity.Name != "") || (userInfo.WhoAddComment == "2" && arrlist[0].ToString() == "1")){%>
										<div id="CommentContent" class="margin20T">
											<p><a name="#commentpost"></a><%=GetText("PB061")%></p>
											<span id="valContent" style="color: Red; display: none;" class="red10" ><%=GetText("C1009")%></span>
											<p><textarea id="txtCommInput" class="common100D" rows="5" onclick="erclose()"></textarea></p>
											<p><input id="btnCommInput" class="button" type="button" value="<%=GetText("C0046")%>"  <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"AddComm()\"":"onclick=\"NotAffirm()\""%>/></p>
										</div>
										<%} %>
									</div>
								</div>
							</div>
							<!--BLACKBOARD-->
						</div>
			  		</div>
					<div class="clear"></div>
					<div style="margin:20px 0px 0px 0px; padding:10px; text-align:left; width:880px!important;width:898px;">
						<h4><%=GetText("PB016",new string[]{BLF.StaticData.GetLanguageText(userInfo.MotherTongue)})%></h4>
						<div>
							<asp:Repeater ID="rptMember2List" runat="server">
							<ItemTemplate>
							<div class="margin10" style="width:110px; margin-right:10px; float:left; text-align:center">
								<div class="pic90" style="margin:0 auto; width:100px"><a class="photo_90" href="<%# "/"+DataBinder.Eval(Container.DataItem,"MemberNo")+".htm"%>"><img src='<%#(DataBinder.Eval(Container.DataItem,"Avatar").ToString()==""?"/Images/no_pic.gif":DataBinder.Eval(Container.DataItem,"Avatar").ToString())%>' border="0"></a></div>
								<div class="wid100"><a href='<%# ("/"+DataBinder.Eval(Container.DataItem,"MemberNo")+".htm")%>'><%#HttpUtility.HtmlAttributeEncode(DataBinder.Eval(Container.DataItem,"NickName").ToString())%></a><p class="grey11"><%#GetText("C0102", new string[] { BLF.StaticData.GetCountryText(DataBinder.Eval(Container.DataItem, "Nationality").ToString()) })%></p></div>
								<div class="clear"></div>
							</div>
							</ItemTemplate>
							</asp:Repeater>
							<div class="clear"></div>
						</div>
					</div>
		  		</div>
				<%} %>
	  		</div>
			<div id="body_right"></div>
			<div class="clear"></div>
  		</div>
		<div id="body_900F"></div>	
	</div>    
</div>
<div id="CommentTemplate" style="display: none">
	<div class="my_comment">
		<div class="my_comment_avatar Pic50" align="center"><a class="photo_50" href='/$userFrom$.htm'>$Avatar$</a></div>
		<div class="my_comment_Bacontent">
			<div class="my_comment_acontent"><span class="grey10"><a href='/$userFrom$.htm'>$NickName$</a> $createDate$</span><p>$content$</p></div>
			<div class="clear"></div>
		</div>
		<div class="Clear"></div>
	</div>
</div>
<script>
 var Memberno="<%=memberno %>";
 var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate2 = "<%=GetText("C0036")%>";
</script>
